package com.yungu.swift.report.service.impl;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.base.model.admin.AdminReportParam;
import com.yungu.swift.report.base.service.impl.BaseServiceImpl;
import com.yungu.swift.report.dao.ReportUserRegisterDayDao;
import com.yungu.swift.report.entity.ReportUserRegisterDay;
import com.yungu.swift.report.service.UserRegisterDayService;
import com.yungu.swift.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

@Service
public class UserRegisterDayServiceImpl extends BaseServiceImpl<ReportUserRegisterDay> implements UserRegisterDayService {

    @Autowired
    private ReportUserRegisterDayDao userRegisterDayDao;

    @Override
    public IMapper<ReportUserRegisterDay> getMapper() {
        return userRegisterDayDao;
    }

    @Override
    public ResponseData<List<ReportUserRegisterDay>> queryIndex(AdminReportParam reportParam) {
        return ResponseData.buildSuccessResponse(userRegisterDayDao.queryIndex(reportParam));
    }
}
